<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>正在退出</title>
</head>
<body>
<div id="app" v-cloak></div>
</body>
<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.0/axios.min.js"></script>
<script>
    new Vue({
        el: '#app',
        methods: {
            logout: function () {
                axios.get('/logout').then(resp => {
                    window.location.href = '/index.html'
                });
            }
        },
        mounted: function () {
            this.logout();
        }
    })
</script>
</html>